//
//  LMTabBarItemModel.h
//  LMTabBarControllerKit
//
//  Created by mengmenglu on 6/24/16.
//  Copyright © 2016 Hangzhou TaiXuan Network Technology Co., Ltd. All rights reserved.
//  自定义TabBarItem 数据模型

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define  TABBARITEM_COUNT          4
#define  MAX_TABBARITEM_WIDTH      320.0/TABBARITEM_COUNT
#define  MIN_TABBARITEM_WIDTH      25.0f
#define  MAX_TABBARITEM_HEIGHT     MAX_TABBARITEM_WIDTH
#define  MIN_TABBARITEM_HEIGHT     MIN_TABBARITEM_WIDTH
#define  DEFAULT_TABBARITEM_SIZE   CGSizeMake(25, 25)

@interface LMTabBarItemModel : NSObject

@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) UIColor *normalTextColor;
@property (nonatomic, strong) UIColor *selectedTextColor;
@property (nonatomic, strong) NSString *normalImageURL;
@property (nonatomic, strong) NSString *selectedImageURL;
@property (nonatomic, strong) UIImage *normalImage;
@property (nonatomic, strong) UIImage *selectedImage;
@property (nonatomic, assign) CGSize normalImageSize;
@property (nonatomic, assign) CGSize selectedImageSize;


/**
 *  初始化（默认）
 */
- (instancetype)initWithTitle:(NSString *)title
              normalTextColor:(UIColor *)normalTextColor
              selectTextColor:(UIColor *)selectTextColor
                  normalImage:(UIImage *)normalImage
                selectedImage:(UIImage *)selectedImage;


/**
 *  初始化（自定义）
 */
- (instancetype)initWithTitle:(NSString *)title
              normalTextColor:(UIColor *)normalTextColor
              selectTextColor:(UIColor *)selectTextColor
                  normalImage:(UIImage *)normalImage
                selectedImage:(UIImage *)selectedImage
              normalImageSize:(CGSize)normalImageSize
            selectedImageSize:(CGSize)selectedImageSize
               normalImageUrl:(NSString *)normalImageUrl
               selectImageUrl:(NSString *)selectImageUrl;



/**
 *  将16进制的字符串颜色转化为UIColor对象颜色
 *
 *  @param hexString l6进制字符串
 *
 *  @return UIColor 对象
 */
+(UIColor *)colorFromHexCode:(NSString *)hexString;


@end
